package cn.demo.quartz.task;

import cn.demo.quartz.mapper.UmTaskMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;


/**
 * 人口模块任务
 */
@Component
public class UmTask {
    @Resource
    private UmTaskMapper umTaskMapper;

    /**
     * 计算年龄
     */
    public void calcAge() {
        umTaskMapper.calcAge();
    }
}
